<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2021.3.24
 * Time: 10:35
 */

// 返回单元顺序相反的数组
$input = [
    "php",
    4.0,
    [
        "green",
        "red"
    ]
];
$reversed = array_reverse($input);
print_r($reversed);